home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Cafe 3
/
Visual Cafe 3.ISO
/
Vcafe
/
Main.bin
/
CompoundBorderBeanInfo.java
< prev
next >
Wrap
Text File
|
1998-10-21
|
2KB
|
60 lines
package com.symantec.itools.swing.borders;
import java.beans.*;
import com.symantec.itools.vcafe.beans.PropertyDescriptorAttributes;
import com.symantec.itools.vcafe.beans.PropertyHelpIDs;
public final class CompoundBorderBeanInfo
extends BorderBeanInfo
{
public CompoundBorderBeanInfo()
{
super();
set16x16ColorIconName("CompoundBorder.gif");
}
protected Class getBeanClass()
{
return CompoundBorder.class;
}
public PropertyDescriptor[] getPropertyDescriptors()
{
try
{
Class beanClass = getBeanClass();
PropertyDescriptor insideBorderPD = new PropertyDescriptor("insideBorder", beanClass);
insideBorderPD.setValue(com.symantec.itools.vcafe.beans.ObjectReferenceAttributes.OBJECTREFERENCE_DEFAULT_IS_NONE_ATTRIBUTE,Boolean.TRUE);
insideBorderPD.setValue(PropertyDescriptorAttributes.WIN_HELP_ATTRIBUTE, new Integer(PropertyHelpIDs.COMPOUNDBORDER_INSIDE_BORDER_HELP_ID));
PropertyDescriptor outsideBorderPD = new PropertyDescriptor("outsideBorder", beanClass);
outsideBorderPD.setValue(com.symantec.itools.vcafe.beans.ObjectReferenceAttributes.OBJECTREFERENCE_DEFAULT_IS_NONE_ATTRIBUTE,Boolean.TRUE);
outsideBorderPD.setValue(PropertyDescriptorAttributes.WIN_HELP_ATTRIBUTE, new Integer(PropertyHelpIDs.COMPOUNDBORDER_OUTSIDE_BORDER_HELP_ID));
return new PropertyDescriptor[]
{
insideBorderPD,
outsideBorderPD,
};
}
catch(IntrospectionException e)
{
e.printStackTrace();
}
//Error, return no properties
return new PropertyDescriptor[0];
}
protected void modifyBeanDescriptor(BeanDescriptor beanDescriptor)
{
super.modifyBeanDescriptor(beanDescriptor);
beanDescriptor.setValue("WINHELP", winHelpID);
}
protected final static String winHelpID = "0x60134";
}